<?php
include_once( "../hip.php" );
include_once( "../config.php" );
include_once( "../class/functions.php" );
include_once( "../class/db.php" );
echo "<meta http-equiv=\"refresh\" content=\"3\">\n";
$rs1 = getdb( "select * from lotto where open <= '".date( "Y-m-d" )."' order by open desc" );
if ( !$rs1->eof )
{
    echo $rs1->f['open']."\n";
    $i = 1;
    while ( $i <= 6 )
    {
        echo $rs1->f["n".$i]."\n";
        ++$i;
    }
    echo $rs1->f['spec']."\n";
}
?>